package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "商品类别实体类")
@Data
@NoArgsConstructor
@TableName(value = "t_type")
public class TypeBean {

    @ApiModelProperty("类别id")
    @TableId(value = "pk_typeId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("类别名")
    @TableField(value = "t_name")
    private String name;

    @Override
    public String toString() {
        return "TypeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}' + "\n";
    }
}
